<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Caneta
 *
 * @author rodolfo
 */
class Caneta {

    protected $nome;

    public function getNome() {
        return $this->nome;
    }

    public function setNome($nome) {
        $this->nome = $nome;
    }

    public function escrever() {
        echo $this->getNome();
    }

}

$caneta = new Caneta();
$caneta->setNome('Rodolfo');
$caneta->escrever();

?>


